from django.contrib import admin
from mhlandscaping.apps.world.models import Map

class MapAdmin(admin.ModelAdmin):
    def save_model(self, request, obj, form, change):
        Map.objects.all().delete()
        obj.save()
admin.site.register(Map, MapAdmin)